package com.itchen.headline.service;

import com.itchen.headline.pojo.NewsHeadline;
import com.itchen.headline.pojo.vo.HeadlineDetailVo;
import com.itchen.headline.pojo.vo.HeadlineQueryVo;

import java.util.Map;

public interface NewsHeadlineService {
    /**
     * 查询分页信息业务
     * @param headlineQueryVo
     * @return
     */
    Map findPage(HeadlineQueryVo headlineQueryVo);

    /**
     * 查询新闻详情
     * @param hid
     * @return
     */
    HeadlineDetailVo findHeadlineDetail(int hid);

    /**
     * 增加新闻业务
     * @param newsHeadline
     */
    int addNewsHeadline(NewsHeadline newsHeadline);

    /**
     * 修改新闻回显
     * @param hid
     * @return
     */
    NewsHeadline findHeadlineByHid(int hid);

    /**
     * 修改新闻业务
     * @param newsHeadline
     */
    int update(NewsHeadline newsHeadline);

    /**
     * 删除新闻业务
     * @param hid
     * @return
     */
    int removeByHid(int hid);
}
